package com.ng.neo.controller;

import com.ng.common.utils.PageUtils;
import com.ng.common.utils.R;
import com.ng.neo.dao.MovieRepository;
import com.ng.neo.dao.PersonRepository;
import com.ng.neo.dao.hlpRepository;
import com.ng.neo.entity.PersonEntity;
import com.ng.neo.entity.hlp;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Pageable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author cb
 * @Description TODO
 * @date 2023/8/25
 */

@RestController
@RequestMapping("neo")
public class neoController {
    @Autowired
  public   MovieRepository movieRepository;
    @Autowired
  public   PersonRepository personRepository;

    @Autowired
    public hlpRepository hlpRepository;

    @RequestMapping("/getlist23")
    public String test() {
        return "123";
    }

    @RequestMapping("/bb")
    public List<PersonEntity> findnoe() {
        PersonEntity person = personRepository.findPersonEntityByName("上白石萌音");
       List<PersonEntity> bb= personRepository.findAll();
        return bb;
    }

//    @RequestMapping("/hlp")
//    public List<hlp> hlp() {
//
////        Pageable dd=new Pageable();
////        List<hlp> bb= hlpRepository.findAll();
//
//        return bb;
//    }


}
